#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230706.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../wpzf-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy wpzf-gateway "
cp ../wpzf-gateway/target/wpzf-gateway.jar ./wpzf/gateway/jar

echo "begin copy wpzf-auth "
cp ../wpzf-auth/target/wpzf-auth.jar ./wpzf/auth/jar

echo "begin copy wpzf-visual "
cp ../wpzf-visual/wpzf-monitor/target/wpzf-visual-monitor.jar  ./wpzf/visual/monitor/jar

echo "begin copy wpzf-modules-system "
cp ../wpzf-modules/wpzf-system/target/wpzf-modules-system.jar ./wpzf/modules/system/jar

echo "begin copy wpzf-modules-file "
cp ../wpzf-modules/wpzf-file/target/wpzf-modules-file.jar ./wpzf/modules/file/jar

echo "begin copy wpzf-modules-job "
cp ../wpzf-modules/wpzf-job/target/wpzf-modules-job.jar ./wpzf/modules/job/jar

echo "begin copy wpzf-modules-gen "
cp ../wpzf-modules/wpzf-gen/target/wpzf-modules-gen.jar ./wpzf/modules/gen/jar

